package com.adoalonso.gwtbingmaps.client;

import com.adoalonso.gwtbingmaps.client.geom.VELatLong;
import com.google.gwt.core.client.JavaScriptObject;

public final class BingMap extends JavaScriptObject {

  protected BingMap() {
  }

  public static native boolean isBingMapsLibraryLoaded() /*-{
		return !(($wnd.VEMap === "undefined") || ($wnd.eval("typeof VEMap") === "undefined"));
  }-*/;

  public static native JavaScriptObject getMapJSObject(String iden) /*-{
		return new $wnd.VEMap(iden);
  }-*/;

  public static final native JavaScriptObject buildMe(String iden) /*-{
		return new $wnd.VEMap(iden);
  }-*/;

  public final native void loadMap()/*-{
		this.LoadMap();
  }-*/;

  public final native void loadMap(VELatLong initalPoint)/*-{
		this.LoadMap(initialPoint);
  }-*/;
}
